<div class="seperator8"></div>
<div id="masterInfo">
<h4>他们的微博很精彩</h4>
<ul id="masterList">
<?php foreach($this->users as $user){?>
<li><a href="<?php echo $this->baseUrl().'/weibo/master/masterId/'.$user['uidstr']?>" target="_blank">
	<img src="<?php echo $user['avatar_large']?>" alt="<?php echo $user['uname']?>" title="<?php echo $user['uname']?>"/>
	</a>
</li>
<?php }?>
</ul>
</div>

<div>
<ul id="container">
<?php foreach($this->paginator as $weibo){?>
	<li class="item">
		<div class="weibo_head"></div>
		<div class="wrapper">
			
			<?php if(1==$weibo['multipic']){?>
			<div class="mpWapper">
				<a href="<?php echo $this->baseUrl().'/weibo/'.$weibo['weiboid'].'.html'?>" target="_blank">
			    <?php echo $this->weiboMultiPics($weibo['weiboid'],'square')?>
			    </a>
            </div>
            <?php }elseif(isset($weibo['bmiddlepic'])){?>
			<div class="cWrapper">
				<a href="<?php echo $this->baseUrl().'/weibo/'.$weibo['weiboid'].'.html'?>" target="_blank">
				<img src="<?php echo $weibo['bmiddlepic']?>" width="200px" alt="点击查看大图" title="点击查看大图"/>
				</a>
			</div>
            <?php }?>
			
			
			<div class="tWrapper">
				<p><?php echo $weibo['text']?></p>
			</div>
		</div>
		<div class="weibo_foot"></div>
	</li>
<?php }?>
</ul>
</div>
<div id="imgloading">
<p>正在努力加载图片及布局，请稍候......</p>
</div>
<div style="clear: both;"></div>
<div id="article-footinfo-area">
<?php echo $this->paginationControl($this->paginator,
                                    'Sliding',
                                    'my_pagination_control.phtml'); ?>
</div>

<script type="text/javascript">
$(function(){
	var $container = $('#container'); //设置容器
	/*$('#container').infinitescroll({   
	    navSelector  : ".paginationControl",  //导航的选择器
	    nextSelector : "#nextpage",  //包含下一页链接的选择器
	    itemSelector : "#container li",  //你将要取回的选项(内容块)
	    loading: {
	        img: "http://www.taoxiuyu.cn/images/ajax-loader.gif" ,
	        msgText: "新内容装载中~~~~~~",
	        finishedMsg: "已经到达最后了"
	    }
	  }, function( newElements ) {
			//程序执行完的回调函数
			var $newElems = $( newElements );
			$container.imagesLoaded(function(){
				$container.masonry( 'appended', $newElems );
			});
	  });*/

		$container.imagesLoaded(function(){
			$('#container .item').fadeIn();
			$('#imgloading').fadeOut();
		  $container.masonry({
            itemSelector:'.item',
            columnWidth:245
		  });
		});
	 
	});


</script>